<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Docs For Class Twitter</title>
  <link rel="stylesheet" href="../media/stylesheet.css" />
  <script src="../media/lib/classTree.js"></script>
<link id="webfx-tab-style-sheet" type="text/css" rel="stylesheet" href="../media/lib/tab.webfx.css" />
<script type="text/javascript" src="../media/lib/tabpane.js"></script>
  <script language="javascript" type="text/javascript" src="../media/lib/ua.js"></script>
<script language="javascript" type="text/javascript">
	var imgPlus = new Image();
	var imgMinus = new Image();
	imgPlus.src = "../media/images/plus.gif";
	imgMinus.src = "../media/images/minus.gif";
	
	function showNode(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
				var oImg = document.layers["img" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
				var oImg = document.all["img" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
				var oImg = document.getElementById("img" + Node);
        		break;
        }
		oImg.src = imgMinus.src;
		oTable.style.display = "block";
	}
	
	function hideNode(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
				var oImg = document.layers["img" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
				var oImg = document.all["img" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
				var oImg = document.getElementById("img" + Node);
        		break;
        }
		oImg.src = imgPlus.src;
		oTable.style.display = "none";
	}
	
	function nodeIsVisible(Node){
        switch(navigator.family){
        	case 'nn4':
        		// Nav 4.x code fork...
				var oTable = document.layers["span" + Node];
        		break;
        	case 'ie4':
        		// IE 4/5 code fork...
				var oTable = document.all["span" + Node];
        		break;
        	case 'gecko':
        		// Standards Compliant code fork...
				var oTable = document.getElementById("span" + Node);
        		break;
        }
		return (oTable && oTable.style.display == "block");
	}
	
	function toggleNodeVisibility(Node){
		if (nodeIsVisible(Node)){
			hideNode(Node);
		}else{
			showNode(Node);
		}
	}
</script>
<!-- template designed by Julien Damon based on PHPEdit's generated templates, and tweaked by Greg Beaver -->
<body bgcolor="#ffffff" ><!-- Start of Class Data -->
<h2>
	Class Twitter
</h2> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a22">22</a></span>)
<div class="tab-pane" id="tabPane1">
<script type="text/javascript">
tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ));
</script>

<div class="tab-page" id="Description">
<h2 class="tab">Description</h2>
<pre>
BaseService
   |
   --Twitter</pre>
<p>
	<b><i>Located in File: <a href="_services---Twitter.php.html">/services/Twitter.php</a></i></b><br>
</p>
<!-- ========== Info from phpDoc block ========= -->
<h5>SWX Twitter API by Aral Balkan. You can call this API using SWX, Amfphp, JSON and XML-RPC.</h5>
<ul>
	</ul>
<br /><hr />
</div>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "Description" ) );</script>
<div class="tab-page" id="tabPage1">

<h2 class="tab">Class Variables</h2>
<!-- ============ VARIABLE DETAIL =========== -->
<strong>Summary:</strong><br />
<hr />
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage1" ) );</script>
</div>
<div class="tab-page" id="constantsTabpage">

<h2 class="tab">Class Constants</h2>
<!-- ============ VARIABLE DETAIL =========== -->
<strong>Summary:</strong><br />
<hr />
<script type="text/javascript">tp1.addTabPage( document.getElementById( "constantsTabpage" ) );</script>
</div>
<div class="tab-page" id="tabPage2">
<h2 class="tab">Method Detail</h2>
<!-- ============ METHOD DETAIL =========== -->
<strong>Summary:</strong><br />
<div class="method-summary">
    <div class="method-definition">
            <span class="method-result">Twitter</span>
        <a href="#methodTwitter" title="details" class="method-name">Twitter</a>
        ()
        </div>
    <div class="method-definition">
            <span class="method-result">(bool)</span>
        <a href="#methodaddFriend" title="details" class="method-name">addFriend</a>
        (<span class="var-type">(int)</span>&nbsp;<span class="var-name">$friendId</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$friendUserName</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$yourUserName</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$yourPassWord</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">(array)</span>
        <a href="#methoddirectMessages" title="details" class="method-name">directMessages</a>
        (<span class="var-type">(str)</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$pass</span>, [<span class="var-type">(str)</span>&nbsp;<span class="var-name">$since</span> = <span class="var-default">NULL</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">(array)</span>
        <a href="#methodfollowers" title="details" class="method-name">followers</a>
        (<span class="var-type">(str)</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$pass</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">(array)</span>
        <a href="#methodfollowersWhoAreNotFriends" title="details" class="method-name">followersWhoAreNotFriends</a>
        (<span class="var-type">(str)</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$pass</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">(bool)</span>
        <a href="#methodfollowFriend" title="details" class="method-name">followFriend</a>
        (<span class="var-type">(int)</span>&nbsp;<span class="var-name">$friendId</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$friendUserName</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$yourUserName</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$yourPassWord</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">(array)</span>
        <a href="#methodfriends" title="details" class="method-name">friends</a>
        (<span class="var-type">(str)</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$pass</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">(array)</span>
        <a href="#methodfriendsNoAuth" title="details" class="method-name">friendsNoAuth</a>
        (<span class="var-type">(str)</span>&nbsp;<span class="var-name">$user</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">Array</span>
        <a href="#methodfriendsTimeline" title="details" class="method-name">friendsTimeline</a>
        (<span class="var-type">Your</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">Your</span>&nbsp;<span class="var-name">$pass</span>, [<span class="var-type">(optional)</span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">NULL</span>], [<span class="var-type">(optional)</span>&nbsp;<span class="var-name">$since</span> = <span class="var-default">NULL</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">array</span>
        <a href="#methodgetNumFriendsUpdates" title="details" class="method-name">getNumFriendsUpdates</a>
        (<span class="var-type">(str)</span>&nbsp;<span class="var-name">$userName</span>, [<span class="var-type">(int)</span>&nbsp;<span class="var-name">$n</span> = <span class="var-default">20</span>], [<span class="var-type">(str)</span>&nbsp;<span class="var-name">$since</span> = <span class="var-default">NULL</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">array</span>
        <a href="#methodgetNumPublicTimelineUpdates" title="details" class="method-name">getNumPublicTimelineUpdates</a>
        ([<span class="var-type">(int)</span>&nbsp;<span class="var-name">$n</span> = <span class="var-default">20</span>], [<span class="var-type">(str)</span>&nbsp;<span class="var-name">$since</span> = <span class="var-default">NULL</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">(bool)</span>
        <a href="#methodleaveFriend" title="details" class="method-name">leaveFriend</a>
        (<span class="var-type">(int)</span>&nbsp;<span class="var-name">$friendId</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$friendUserName</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$yourUserName</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$yourPassWord</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">The</span>
        <a href="#methodnewDirectMessage" title="details" class="method-name">newDirectMessage</a>
        (<span class="var-type">User</span>&nbsp;<span class="var-name">$recipient</span>, <span class="var-type">Message</span>&nbsp;<span class="var-name">$message</span>, <span class="var-type">Your</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">Your</span>&nbsp;<span class="var-name">$pass</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">Array</span>
        <a href="#methodpublicTimeline" title="details" class="method-name">publicTimeline</a>
        ([<span class="var-type">(optional)</span>&nbsp;<span class="var-name">$sinceId</span> = <span class="var-default">NULL</span>], <span class="var-type">(optional)</span>&nbsp;<span class="var-name">1</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">(bool)</span>
        <a href="#methodremoveFriend" title="details" class="method-name">removeFriend</a>
        (<span class="var-type">(int)</span>&nbsp;<span class="var-name">$friendId</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$friendUserName</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$yourUserName</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$yourPassWord</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methodshowStatus" title="details" class="method-name">showStatus</a>
        (<span class="var-type">The</span>&nbsp;<span class="var-name">$id</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">Information</span>
        <a href="#methodshowUser" title="details" class="method-name">showUser</a>
        (<span class="var-type">(str/int)</span>&nbsp;<span class="var-name">$id</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$pass</span>)
        </div>
    <div class="method-definition">
            <span class="method-result">(array)</span>
        <a href="#methodupdate" title="details" class="method-name">update</a>
        (<span class="var-type">(str)</span>&nbsp;<span class="var-name">$update</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$user</span>, <span class="var-type">(str)</span>&nbsp;<span class="var-name">$pass</span>, [<span class="var-type">(optional,</span>&nbsp;<span class="var-name">$source</span> = <span class="var-default">NULL</span>])
        </div>
    <div class="method-definition">
            <span class="method-result">void</span>
        <a href="#methoduserTimeline" title="details" class="method-name">userTimeline</a>
        (<span class="var-type"></span>&nbsp;<span class="var-name">$user</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$pass</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$id</span> = <span class="var-default">NULL</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$count</span> = <span class="var-default">NULL</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$since</span> = <span class="var-default">NULL</span>])
        </div>
</div>
<hr />
<A NAME='method_detail'></A>


<a name="methodTwitter" id="methodTwitter"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/Constructor.gif" border="0" /> <strong class="method">Constructor Twitter</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a24">24</a></span>)
 </h4> 
<h4><i>Twitter</i> <strong>Twitter(
)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
		
	<h4>Info</h4>
	<ul>
		</ul>
</div>
<a name="methodaddFriend" id="methodaddFriend"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method addFriend</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a464">464</a></span>)
 </h4> 
<h4><i>(bool)</i> <strong>addFriend(
(int)
$friendId, (str)
$friendUserName, (str)
$yourUserName, (str)
$yourPassWord)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Adds friend with passed friend ID and user name.</h5>
<div class="desc"><p>This method is *not* in the official Twitter API and uses cURL.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(int) $friendId</strong>: Friend ID</li>
			<li><strong>(str) $friendUserName</strong>: Friend's user name</li>
			<li><strong>(str) $yourUserName</strong>: Your user name</li>
			<li><strong>(str) $yourPassWord</strong>: Your password</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Success (true/false).</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methoddirectMessages" id="methoddirectMessages"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method directMessages</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a305">305</a></span>)
 </h4> 
<h4><i>(array)</i> <strong>directMessages(
(str)
$user, (str)
$pass, [(str)
$since = NULL])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns the list of direct messages for the passed user.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(str) $user</strong>: Your user name</li>
			<li><strong>(str) $pass</strong>: Your password</li>
			<li><strong>(str) $since</strong>: Since (optional)</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - List of direct messages</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodfollowers" id="methodfollowers"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method followers</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a242">242</a></span>)
 </h4> 
<h4><i>(array)</i> <strong>followers(
(str)
$user, (str)
$pass)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Gets followers for authenticated user.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(str) $user</strong>: Your username.</li>
			<li><strong>(str) $pass</strong>: Your password.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - List of followers.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodfollowersWhoAreNotFriends" id="methodfollowersWhoAreNotFriends"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method followersWhoAreNotFriends</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a152">152</a></span>)
 </h4> 
<h4><i>(array)</i> <strong>followersWhoAreNotFriends(
(str)
$user, (str)
$pass)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns followers who are not friends.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(str) $user</strong>: User name.</li>
			<li><strong>(str) $pass</strong>: Password.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - List of followers that are not friends.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodfollowFriend" id="methodfollowFriend"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method followFriend</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a488">488</a></span>)
 </h4> 
<h4><i>(bool)</i> <strong>followFriend(
(int)
$friendId, (str)
$friendUserName, (str)
$yourUserName, (str)
$yourPassWord)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Follows friend with passed friend ID and user name.</h5>
<div class="desc"><p>This method is *not* in the official Twitter API and uses cURL.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(int) $friendId</strong>: Friend ID</li>
			<li><strong>(str) $friendUserName</strong>: Friend's user name</li>
			<li><strong>(str) $yourUserName</strong>: Your user name</li>
			<li><strong>(str) $yourPassWord</strong>: Your password</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Success (true/false).</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodfriends" id="methodfriends"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method friends</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a209">209</a></span>)
 </h4> 
<h4><i>(array)</i> <strong>friends(
(str)
$user, (str)
$pass)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Gets friends for the passed user.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(str) $user</strong>: Username.</li>
			<li><strong>(str) $pass</strong>: Password.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - List of friends.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodfriendsNoAuth" id="methodfriendsNoAuth"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method friendsNoAuth</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a226">226</a></span>)
 </h4> 
<h4><i>(array)</i> <strong>friendsNoAuth(
(str)
$user)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Gets friends for the passed user name. Doesn't  require authentication but will not return friends  who have set themselves to private.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(str) $user</strong>: User name</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - List of friends.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodfriendsTimeline" id="methodfriendsTimeline"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method friendsTimeline</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a66">66</a></span>)
 </h4> 
<h4><i>Array</i> <strong>friendsTimeline(
Your
$user, Your
$pass, [(optional)
$id = NULL], [(optional)
$since = NULL])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user and that user's friends.  It's also possible to request another user's friends_timeline via the id parameter.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>Your $user</strong>: username.</li>
			<li><strong>Your $pass</strong>: password.</li>
			<li><strong>(optional) $id</strong>: ID or screen name of the user for whom to return the friends_timeline.</li>
			<li><strong>(optional) $since</strong>: Narrows the returned results to just those statuses created after the specified HTTP-formatted date.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - of statuses.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodgetNumFriendsUpdates" id="methodgetNumFriendsUpdates"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method getNumFriendsUpdates</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a408">408</a></span>)
 </h4> 
<h4><i>array</i> <strong>getNumFriendsUpdates(
(str)
$userName, [(int)
$n = 20], [(str)
$since = NULL])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns the number of updates for the user and her friends (up to 20) for the passed user name (or email).</h5>
<div class="desc"><p>Note that when calling this without the since parameter, the results appear to be affected  by the caching that Twitter has implemented and the results may not be the most recent.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(str) $userName</strong>: User name (or email)</li>
			<li><strong>(int) $n</strong>: Number of updates to get (max 20)</li>
			<li><strong>(str) $since</strong>: (optional) URL-encoded date</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Updates</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodgetNumPublicTimelineUpdates" id="methodgetNumPublicTimelineUpdates"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method getNumPublicTimelineUpdates</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a354">354</a></span>)
 </h4> 
<h4><i>array</i> <strong>getNumPublicTimelineUpdates(
[(int)
$n = 20], [(str)
$since = NULL])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns the number of requested updates from the public timeline (max 20).</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(int) $n</strong>: Number of updates to get (max 20)</li>
			<li><strong>(str) $since</strong>: URL-encoded date</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Updates</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodleaveFriend" id="methodleaveFriend"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method leaveFriend</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a512">512</a></span>)
 </h4> 
<h4><i>(bool)</i> <strong>leaveFriend(
(int)
$friendId, (str)
$friendUserName, (str)
$yourUserName, (str)
$yourPassWord)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Leaves friend with passed friend ID and user name.</h5>
<div class="desc"><p>This method is *not* in the official Twitter API and uses cURL.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(int) $friendId</strong>: Friend ID</li>
			<li><strong>(str) $friendUserName</strong>: Friend's user name</li>
			<li><strong>(str) $yourUserName</strong>: Your user name</li>
			<li><strong>(str) $yourPassWord</strong>: Your password</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Success (true/false).</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodnewDirectMessage" id="methodnewDirectMessage"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method newDirectMessage</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a328">328</a></span>)
 </h4> 
<h4><i>The</i> <strong>newDirectMessage(
User
$recipient, Message
$message, Your
$user, Your
$pass)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Sends a direct message</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>User $recipient</strong>: name of recipient</li>
			<li><strong>Message $message</strong>: to send</li>
			<li><strong>Your $user</strong>: username</li>
			<li><strong>Your $pass</strong>: password</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - sent direct message.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodpublicTimeline" id="methodpublicTimeline"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method publicTimeline</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a44">44</a></span>)
 </h4> 
<h4><i>Array</i> <strong>publicTimeline(
[(optional)
$sinceId = NULL], (optional)
1)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns the 20 most recent statuses from non-protected users who have set a custom user icon.  Does not require authentication.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(optional) 1</strong>: Narrows the returned results to just those statuses created after the specified HTTP-formatted date.</li>
			<li><strong>(optional) $sinceId</strong>: Returns only public statuses with an ID greater than (that is, more recent than) the specified.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - of statuses.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodremoveFriend" id="methodremoveFriend"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method removeFriend</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a536">536</a></span>)
 </h4> 
<h4><i>(bool)</i> <strong>removeFriend(
(int)
$friendId, (str)
$friendUserName, (str)
$yourUserName, (str)
$yourPassWord)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Removes friend with passed friend ID and user name.</h5>
<div class="desc"><p>This method is *not* in the official Twitter API and uses cURL.</p></div>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(int) $friendId</strong>: Friend ID</li>
			<li><strong>(str) $friendUserName</strong>: Friend's user name</li>
			<li><strong>(str) $yourUserName</strong>: Your user name</li>
			<li><strong>(str) $yourPassWord</strong>: Your password</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Success (true/false).</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodshowStatus" id="methodshowStatus"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method showStatus</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a103">103</a></span>)
 </h4> 
<h4><i>void</i> <strong>showStatus(
The
$id)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns a single status, specified by the id parameter below.  The status's author will be returned inline.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>The $id</strong>: numerical ID of the status you're trying to retrieve.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodshowUser" id="methodshowUser"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method showUser</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a286">286</a></span>)
 </h4> 
<h4><i>Information</i> <strong>showUser(
(str/int)
$id, (str)
$user, (str)
$pass)</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns extended information of a given user, specified by ID or screen name as per the required id parameter below.  This information includes design settings, so third party developers can theme their widgets according to a given user's preferences.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(str/int) $id</strong>: The ID or screen name of a user.</li>
			<li><strong>(str) $user</strong>: Your username.</li>
			<li><strong>(str) $pass</strong>: Your password.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - on user.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methodupdate" id="methodupdate"><!-- --></a>
<div style="background='#eeeeee'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method update</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a124">124</a></span>)
 </h4> 
<h4><i>(array)</i> <strong>update(
(str)
$update, (str)
$user, (str)
$pass, [(optional,
$source = NULL])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Posts a twitter update.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong>(str) $update</strong>: Twitter update message</li>
			<li><strong>(str) $user</strong>: Your user name</li>
			<li><strong>(str) $pass</strong>: Your password</li>
			<li><strong>(optional, $source</strong>: str) Source string. If enabled by Twitter, this will appear in the &quot;from&quot; section of the update.</li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>return</strong> - Success/failure message.</li>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<a name="methoduserTimeline" id="methoduserTimeline"><!-- --></a>
<div style="background='#ffffff'"><h4>
<img src="../media/images/PublicMethod.gif" border="0" /> <strong class="method">Method userTimeline</strong> (line <span class="linenumber"><a href="../__filesource/fsource_SWX__servicesTwitter.php.html#a84">84</a></span>)
 </h4> 
<h4><i>void</i> <strong>userTimeline(

$user, 
$pass, [
$id = NULL], [
$count = NULL], [
$since = NULL])</strong></h4>

	<!-- ========== Info from phpDoc block ========= -->
<h5>Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user.  It's also possible to request another user's timeline via the id parameter below.</h5>
		<h4>Parameters</h4>
	<ul>
			<li><strong> $user</strong>: </li>
			<li><strong> $pass</strong>: </li>
			<li><strong> $id</strong>: </li>
			<li><strong> $count</strong>: </li>
			<li><strong> $since</strong>: </li>
		</ul>
		
	<h4>Info</h4>
	<ul>
			<li><strong>author</strong> - Aral Balkan</li>
		</ul>
</div>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage2" ) );</script></div>
<div class="tab-page" id="iVars">
<h2 class="tab">Inherited Variables</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "iVars" ) );</script>
<!-- =========== VAR INHERITED SUMMARY =========== -->
<A NAME='var_inherited_summary'><!-- --></A>
<h3>Inherited Class Variable Summary</h3>

	</div>
<div class="tab-page" id="iMethods">
<h2 class="tab">Inherited Methods</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "iMethods" ) );</script>
<!-- =========== INHERITED METHOD SUMMARY =========== -->
<A NAME='functions_inherited'><!-- --></A>
<h3>Inherited Method Summary</h3>

	</div>
</div>
<script type="text/javascript">
//<![CDATA[

setupAllTabs();

//]]>
</script>
	<div id="credit">
		<hr />
		Documentation generated on Fri, 06 Jul 2007 19:54:54 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.1</a>
	</div>
</body>
</html>